<?php

class FormElement_Textarea extends FormElement
{

  public $rich = false;

  public function render($row, $action)
  {
    switch ($action) {
      case Form::ACTION_INDEX :

        $output = sy_truncate($this->getValue($row));

        break;

      default :
        $this->set('rich', $this->rich);
        $output = parent::render($row, $action);
    }

    return $output;
  }

}

?>